<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>GameEngine: StateManager Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">GameEngine
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_state_manager.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="class_state_manager-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">StateManager Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_state_manager_8h_source.html">StateManager.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3671a7c516e46d8e85048fc7808ce3ad"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_manager.html#a3671a7c516e46d8e85048fc7808ce3ad">StateManager</a> (void)</td></tr>
<tr class="separator:a3671a7c516e46d8e85048fc7808ce3ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c8cc451501d7883ffc28b60d7f4c559"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_manager.html#a7c8cc451501d7883ffc28b60d7f4c559">~StateManager</a> (void)</td></tr>
<tr class="separator:a7c8cc451501d7883ffc28b60d7f4c559"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7672f878bc520a29723feac8dc19131"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_state_machine.html">StateMachine</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_manager.html#ae7672f878bc520a29723feac8dc19131">initialiseState</a> ()</td></tr>
<tr class="separator:ae7672f878bc520a29723feac8dc19131"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abab37054bb4884e50618d4befa12eaf3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_manager.html#abab37054bb4884e50618d4befa12eaf3">changePlacesBeen</a> (long code, <a class="el" href="class_state_machine.html">StateMachine</a> *machine)</td></tr>
<tr class="separator:abab37054bb4884e50618d4befa12eaf3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a901fef986fdd19cccbef719c929ba89f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_state_machine.html">StateMachine</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_manager.html#a901fef986fdd19cccbef719c929ba89f">getStateValue</a> (long code)</td></tr>
<tr class="separator:a901fef986fdd19cccbef719c929ba89f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada4df5f0156c3f811fc2fb4fb4991d8f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_state_machine.html">StateMachine</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_manager.html#ada4df5f0156c3f811fc2fb4fb4991d8f">callStates</a> (long code, long oldcode, <a class="el" href="class_state_machine.html">StateMachine</a> *oldmachine)</td></tr>
<tr class="separator:ada4df5f0156c3f811fc2fb4fb4991d8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a39d1a1ef04855e4c6d4d883345d820fa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_key_code.html">KeyCode</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_manager.html#a39d1a1ef04855e4c6d4d883345d820fa">codes</a></td></tr>
<tr class="separator:a39d1a1ef04855e4c6d4d883345d820fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb63b5c570c88ecc53dcaa60bc917a31"><td class="memItemLeft" align="right" valign="top">std::map&lt; long, <a class="el" href="class_state_machine.html">StateMachine</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_manager.html#adb63b5c570c88ecc53dcaa60bc917a31">placesbeen</a></td></tr>
<tr class="separator:adb63b5c570c88ecc53dcaa60bc917a31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4223790502653f0c4f788492657e2efe"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_manager.html#a4223790502653f0c4f788492657e2efe">currentcode</a></td></tr>
<tr class="separator:a4223790502653f0c4f788492657e2efe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_state_manager_8h_source.html#l00015">15</a> of file <a class="el" href="_state_manager_8h_source.html">StateManager.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a3671a7c516e46d8e85048fc7808ce3ad"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">StateManager::StateManager </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_state_manager_8cpp_source.html#l00011">11</a> of file <a class="el" href="_state_manager_8cpp_source.html">StateManager.cpp</a>.</p>

<p>References <a class="el" href="_state_manager_8h_source.html#l00026">codes</a>, and <a class="el" href="_state_manager_8h_source.html#l00029">currentcode</a>.</p>

</div>
</div>
<a class="anchor" id="a7c8cc451501d7883ffc28b60d7f4c559"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">StateManager::~StateManager </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_state_manager_8cpp_source.html#l00018">18</a> of file <a class="el" href="_state_manager_8cpp_source.html">StateManager.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ada4df5f0156c3f811fc2fb4fb4991d8f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_state_machine.html">StateMachine</a> * StateManager::callStates </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>oldcode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_state_machine.html">StateMachine</a> *&#160;</td>
          <td class="paramname"><em>oldmachine</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_state_manager_8cpp_source.html#l00035">35</a> of file <a class="el" href="_state_manager_8cpp_source.html">StateManager.cpp</a>.</p>

<p>References <a class="el" href="_state_manager_8cpp_source.html#l00027">changePlacesBeen()</a>, <a class="el" href="_state_manager_8h_source.html#l00026">codes</a>, <a class="el" href="_state_manager_8h_source.html#l00029">currentcode</a>, <a class="el" href="_key_code_8cpp_source.html#l00037">KeyCode::getHashMap()</a>, <a class="el" href="_key_code_8cpp_source.html#l00040">KeyCode::getSpecial()</a>, <a class="el" href="_state_manager_8h_source.html#l00027">placesbeen</a>, and <a class="el" href="class_state_machine.html#aec67074ebf4261300ba77d216ac156bd">StateMachine::reInit()</a>.</p>

<p>Referenced by <a class="el" href="_main_frame_8cpp_source.html#l00166">MainFrame::update()</a>, and <a class="el" href="_gameloop_8cpp_source.html#l00115">Gameloop::update()</a>.</p>

</div>
</div>
<a class="anchor" id="abab37054bb4884e50618d4befa12eaf3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateManager::changePlacesBeen </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_state_machine.html">StateMachine</a> *&#160;</td>
          <td class="paramname"><em>machine</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_state_manager_8cpp_source.html#l00027">27</a> of file <a class="el" href="_state_manager_8cpp_source.html">StateManager.cpp</a>.</p>

<p>References <a class="el" href="_state_manager_8h_source.html#l00027">placesbeen</a>.</p>

<p>Referenced by <a class="el" href="_state_manager_8cpp_source.html#l00035">callStates()</a>.</p>

</div>
</div>
<a class="anchor" id="a901fef986fdd19cccbef719c929ba89f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_state_machine.html">StateMachine</a> * StateManager::getStateValue </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>code</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_state_manager_8cpp_source.html#l00031">31</a> of file <a class="el" href="_state_manager_8cpp_source.html">StateManager.cpp</a>.</p>

<p>References <a class="el" href="_state_manager_8h_source.html#l00027">placesbeen</a>.</p>

</div>
</div>
<a class="anchor" id="ae7672f878bc520a29723feac8dc19131"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_state_machine.html">StateMachine</a> * StateManager::initialiseState </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_state_manager_8cpp_source.html#l00022">22</a> of file <a class="el" href="_state_manager_8cpp_source.html">StateManager.cpp</a>.</p>

<p>References <a class="el" href="_state_manager_8h_source.html#l00026">codes</a>, and <a class="el" href="_key_code_8cpp_source.html#l00037">KeyCode::getHashMap()</a>.</p>

<p>Referenced by <a class="el" href="_gameloop_8cpp_source.html#l00020">Gameloop::Gameloop()</a>, and <a class="el" href="_main_frame_8cpp_source.html#l00101">MainFrame::init()</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a39d1a1ef04855e4c6d4d883345d820fa"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_key_code.html">KeyCode</a>* StateManager::codes</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_state_manager_8h_source.html#l00026">26</a> of file <a class="el" href="_state_manager_8h_source.html">StateManager.h</a>.</p>

<p>Referenced by <a class="el" href="_state_manager_8cpp_source.html#l00035">callStates()</a>, <a class="el" href="_state_manager_8cpp_source.html#l00022">initialiseState()</a>, and <a class="el" href="_state_manager_8cpp_source.html#l00011">StateManager()</a>.</p>

</div>
</div>
<a class="anchor" id="a4223790502653f0c4f788492657e2efe"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long StateManager::currentcode</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_state_manager_8h_source.html#l00029">29</a> of file <a class="el" href="_state_manager_8h_source.html">StateManager.h</a>.</p>

<p>Referenced by <a class="el" href="_state_manager_8cpp_source.html#l00035">callStates()</a>, and <a class="el" href="_state_manager_8cpp_source.html#l00011">StateManager()</a>.</p>

</div>
</div>
<a class="anchor" id="adb63b5c570c88ecc53dcaa60bc917a31"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::map&lt;long, <a class="el" href="class_state_machine.html">StateMachine</a>*&gt; StateManager::placesbeen</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_state_manager_8h_source.html#l00027">27</a> of file <a class="el" href="_state_manager_8h_source.html">StateManager.h</a>.</p>

<p>Referenced by <a class="el" href="_state_manager_8cpp_source.html#l00035">callStates()</a>, <a class="el" href="_state_manager_8cpp_source.html#l00027">changePlacesBeen()</a>, and <a class="el" href="_state_manager_8cpp_source.html#l00031">getStateValue()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>C:/Users/Axel/Desktop/informatica/Projects/Workspace C++/Game Engine/src/StateManagement/<a class="el" href="_state_manager_8h_source.html">StateManager.h</a></li>
<li>C:/Users/Axel/Desktop/informatica/Projects/Workspace C++/Game Engine/src/StateManagement/<a class="el" href="_state_manager_8cpp_source.html">StateManager.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_state_manager.html">StateManager</a></li>
    <li class="footer">Generated on Fri Dec 13 2013 19:38:40 for GameEngine by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.5 </li>
  </ul>
</div>
</body>
</html>
